package mobi.hami.huapin.model;

import java.util.ArrayList;
import java.util.List;

public class FoodSortExample {
    /**
     * food_sort
     */
    protected String orderByClause;

    /**
     * food_sort
     */
    protected boolean distinct;

    /**
     * food_sort
     */
    protected List<Criteria> oredCriteria;

    public FoodSortExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * food_sort 2018-08-20
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSortnameIsNull() {
            addCriterion("sortname is null");
            return (Criteria) this;
        }

        public Criteria andSortnameIsNotNull() {
            addCriterion("sortname is not null");
            return (Criteria) this;
        }

        public Criteria andSortnameEqualTo(String value) {
            addCriterion("sortname =", value, "sortname");
            return (Criteria) this;
        }

        public Criteria andSortnameNotEqualTo(String value) {
            addCriterion("sortname <>", value, "sortname");
            return (Criteria) this;
        }

        public Criteria andSortnameGreaterThan(String value) {
            addCriterion("sortname >", value, "sortname");
            return (Criteria) this;
        }

        public Criteria andSortnameGreaterThanOrEqualTo(String value) {
            addCriterion("sortname >=", value, "sortname");
            return (Criteria) this;
        }

        public Criteria andSortnameLessThan(String value) {
            addCriterion("sortname <", value, "sortname");
            return (Criteria) this;
        }

        public Criteria andSortnameLessThanOrEqualTo(String value) {
            addCriterion("sortname <=", value, "sortname");
            return (Criteria) this;
        }

        public Criteria andSortnameLike(String value) {
            addCriterion("sortname like", value, "sortname");
            return (Criteria) this;
        }

        public Criteria andSortnameNotLike(String value) {
            addCriterion("sortname not like", value, "sortname");
            return (Criteria) this;
        }

        public Criteria andSortnameIn(List<String> values) {
            addCriterion("sortname in", values, "sortname");
            return (Criteria) this;
        }

        public Criteria andSortnameNotIn(List<String> values) {
            addCriterion("sortname not in", values, "sortname");
            return (Criteria) this;
        }

        public Criteria andSortnameBetween(String value1, String value2) {
            addCriterion("sortname between", value1, value2, "sortname");
            return (Criteria) this;
        }

        public Criteria andSortnameNotBetween(String value1, String value2) {
            addCriterion("sortname not between", value1, value2, "sortname");
            return (Criteria) this;
        }

        public Criteria andLevelIsNull() {
            addCriterion("level is null");
            return (Criteria) this;
        }

        public Criteria andLevelIsNotNull() {
            addCriterion("level is not null");
            return (Criteria) this;
        }

        public Criteria andLevelEqualTo(Integer value) {
            addCriterion("level =", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotEqualTo(Integer value) {
            addCriterion("level <>", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThan(Integer value) {
            addCriterion("level >", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("level >=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThan(Integer value) {
            addCriterion("level <", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThanOrEqualTo(Integer value) {
            addCriterion("level <=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelIn(List<Integer> values) {
            addCriterion("level in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotIn(List<Integer> values) {
            addCriterion("level not in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelBetween(Integer value1, Integer value2) {
            addCriterion("level between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("level not between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andJorderIsNull() {
            addCriterion("jorder is null");
            return (Criteria) this;
        }

        public Criteria andJorderIsNotNull() {
            addCriterion("jorder is not null");
            return (Criteria) this;
        }

        public Criteria andJorderEqualTo(Integer value) {
            addCriterion("jorder =", value, "jorder");
            return (Criteria) this;
        }

        public Criteria andJorderNotEqualTo(Integer value) {
            addCriterion("jorder <>", value, "jorder");
            return (Criteria) this;
        }

        public Criteria andJorderGreaterThan(Integer value) {
            addCriterion("jorder >", value, "jorder");
            return (Criteria) this;
        }

        public Criteria andJorderGreaterThanOrEqualTo(Integer value) {
            addCriterion("jorder >=", value, "jorder");
            return (Criteria) this;
        }

        public Criteria andJorderLessThan(Integer value) {
            addCriterion("jorder <", value, "jorder");
            return (Criteria) this;
        }

        public Criteria andJorderLessThanOrEqualTo(Integer value) {
            addCriterion("jorder <=", value, "jorder");
            return (Criteria) this;
        }

        public Criteria andJorderIn(List<Integer> values) {
            addCriterion("jorder in", values, "jorder");
            return (Criteria) this;
        }

        public Criteria andJorderNotIn(List<Integer> values) {
            addCriterion("jorder not in", values, "jorder");
            return (Criteria) this;
        }

        public Criteria andJorderBetween(Integer value1, Integer value2) {
            addCriterion("jorder between", value1, value2, "jorder");
            return (Criteria) this;
        }

        public Criteria andJorderNotBetween(Integer value1, Integer value2) {
            addCriterion("jorder not between", value1, value2, "jorder");
            return (Criteria) this;
        }

        public Criteria andOldsortidIsNull() {
            addCriterion("oldsortid is null");
            return (Criteria) this;
        }

        public Criteria andOldsortidIsNotNull() {
            addCriterion("oldsortid is not null");
            return (Criteria) this;
        }

        public Criteria andOldsortidEqualTo(Integer value) {
            addCriterion("oldsortid =", value, "oldsortid");
            return (Criteria) this;
        }

        public Criteria andOldsortidNotEqualTo(Integer value) {
            addCriterion("oldsortid <>", value, "oldsortid");
            return (Criteria) this;
        }

        public Criteria andOldsortidGreaterThan(Integer value) {
            addCriterion("oldsortid >", value, "oldsortid");
            return (Criteria) this;
        }

        public Criteria andOldsortidGreaterThanOrEqualTo(Integer value) {
            addCriterion("oldsortid >=", value, "oldsortid");
            return (Criteria) this;
        }

        public Criteria andOldsortidLessThan(Integer value) {
            addCriterion("oldsortid <", value, "oldsortid");
            return (Criteria) this;
        }

        public Criteria andOldsortidLessThanOrEqualTo(Integer value) {
            addCriterion("oldsortid <=", value, "oldsortid");
            return (Criteria) this;
        }

        public Criteria andOldsortidIn(List<Integer> values) {
            addCriterion("oldsortid in", values, "oldsortid");
            return (Criteria) this;
        }

        public Criteria andOldsortidNotIn(List<Integer> values) {
            addCriterion("oldsortid not in", values, "oldsortid");
            return (Criteria) this;
        }

        public Criteria andOldsortidBetween(Integer value1, Integer value2) {
            addCriterion("oldsortid between", value1, value2, "oldsortid");
            return (Criteria) this;
        }

        public Criteria andOldsortidNotBetween(Integer value1, Integer value2) {
            addCriterion("oldsortid not between", value1, value2, "oldsortid");
            return (Criteria) this;
        }

        public Criteria andPicIsNull() {
            addCriterion("pic is null");
            return (Criteria) this;
        }

        public Criteria andPicIsNotNull() {
            addCriterion("pic is not null");
            return (Criteria) this;
        }

        public Criteria andPicEqualTo(String value) {
            addCriterion("pic =", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicNotEqualTo(String value) {
            addCriterion("pic <>", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicGreaterThan(String value) {
            addCriterion("pic >", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicGreaterThanOrEqualTo(String value) {
            addCriterion("pic >=", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicLessThan(String value) {
            addCriterion("pic <", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicLessThanOrEqualTo(String value) {
            addCriterion("pic <=", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicLike(String value) {
            addCriterion("pic like", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicNotLike(String value) {
            addCriterion("pic not like", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicIn(List<String> values) {
            addCriterion("pic in", values, "pic");
            return (Criteria) this;
        }

        public Criteria andPicNotIn(List<String> values) {
            addCriterion("pic not in", values, "pic");
            return (Criteria) this;
        }

        public Criteria andPicBetween(String value1, String value2) {
            addCriterion("pic between", value1, value2, "pic");
            return (Criteria) this;
        }

        public Criteria andPicNotBetween(String value1, String value2) {
            addCriterion("pic not between", value1, value2, "pic");
            return (Criteria) this;
        }

        public Criteria andIntroIsNull() {
            addCriterion("intro is null");
            return (Criteria) this;
        }

        public Criteria andIntroIsNotNull() {
            addCriterion("intro is not null");
            return (Criteria) this;
        }

        public Criteria andIntroEqualTo(String value) {
            addCriterion("intro =", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroNotEqualTo(String value) {
            addCriterion("intro <>", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroGreaterThan(String value) {
            addCriterion("intro >", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroGreaterThanOrEqualTo(String value) {
            addCriterion("intro >=", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroLessThan(String value) {
            addCriterion("intro <", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroLessThanOrEqualTo(String value) {
            addCriterion("intro <=", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroLike(String value) {
            addCriterion("intro like", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroNotLike(String value) {
            addCriterion("intro not like", value, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroIn(List<String> values) {
            addCriterion("intro in", values, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroNotIn(List<String> values) {
            addCriterion("intro not in", values, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroBetween(String value1, String value2) {
            addCriterion("intro between", value1, value2, "intro");
            return (Criteria) this;
        }

        public Criteria andIntroNotBetween(String value1, String value2) {
            addCriterion("intro not between", value1, value2, "intro");
            return (Criteria) this;
        }

        public Criteria andParentidIsNull() {
            addCriterion("parentid is null");
            return (Criteria) this;
        }

        public Criteria andParentidIsNotNull() {
            addCriterion("parentid is not null");
            return (Criteria) this;
        }

        public Criteria andParentidEqualTo(Integer value) {
            addCriterion("parentid =", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidNotEqualTo(Integer value) {
            addCriterion("parentid <>", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidGreaterThan(Integer value) {
            addCriterion("parentid >", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidGreaterThanOrEqualTo(Integer value) {
            addCriterion("parentid >=", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidLessThan(Integer value) {
            addCriterion("parentid <", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidLessThanOrEqualTo(Integer value) {
            addCriterion("parentid <=", value, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidIn(List<Integer> values) {
            addCriterion("parentid in", values, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidNotIn(List<Integer> values) {
            addCriterion("parentid not in", values, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidBetween(Integer value1, Integer value2) {
            addCriterion("parentid between", value1, value2, "parentid");
            return (Criteria) this;
        }

        public Criteria andParentidNotBetween(Integer value1, Integer value2) {
            addCriterion("parentid not between", value1, value2, "parentid");
            return (Criteria) this;
        }

        public Criteria andFirstsortnameIsNull() {
            addCriterion("firstsortname is null");
            return (Criteria) this;
        }

        public Criteria andFirstsortnameIsNotNull() {
            addCriterion("firstsortname is not null");
            return (Criteria) this;
        }

        public Criteria andFirstsortnameEqualTo(String value) {
            addCriterion("firstsortname =", value, "firstsortname");
            return (Criteria) this;
        }

        public Criteria andFirstsortnameNotEqualTo(String value) {
            addCriterion("firstsortname <>", value, "firstsortname");
            return (Criteria) this;
        }

        public Criteria andFirstsortnameGreaterThan(String value) {
            addCriterion("firstsortname >", value, "firstsortname");
            return (Criteria) this;
        }

        public Criteria andFirstsortnameGreaterThanOrEqualTo(String value) {
            addCriterion("firstsortname >=", value, "firstsortname");
            return (Criteria) this;
        }

        public Criteria andFirstsortnameLessThan(String value) {
            addCriterion("firstsortname <", value, "firstsortname");
            return (Criteria) this;
        }

        public Criteria andFirstsortnameLessThanOrEqualTo(String value) {
            addCriterion("firstsortname <=", value, "firstsortname");
            return (Criteria) this;
        }

        public Criteria andFirstsortnameLike(String value) {
            addCriterion("firstsortname like", value, "firstsortname");
            return (Criteria) this;
        }

        public Criteria andFirstsortnameNotLike(String value) {
            addCriterion("firstsortname not like", value, "firstsortname");
            return (Criteria) this;
        }

        public Criteria andFirstsortnameIn(List<String> values) {
            addCriterion("firstsortname in", values, "firstsortname");
            return (Criteria) this;
        }

        public Criteria andFirstsortnameNotIn(List<String> values) {
            addCriterion("firstsortname not in", values, "firstsortname");
            return (Criteria) this;
        }

        public Criteria andFirstsortnameBetween(String value1, String value2) {
            addCriterion("firstsortname between", value1, value2, "firstsortname");
            return (Criteria) this;
        }

        public Criteria andFirstsortnameNotBetween(String value1, String value2) {
            addCriterion("firstsortname not between", value1, value2, "firstsortname");
            return (Criteria) this;
        }

        public Criteria andSecondsortnameIsNull() {
            addCriterion("secondsortname is null");
            return (Criteria) this;
        }

        public Criteria andSecondsortnameIsNotNull() {
            addCriterion("secondsortname is not null");
            return (Criteria) this;
        }

        public Criteria andSecondsortnameEqualTo(String value) {
            addCriterion("secondsortname =", value, "secondsortname");
            return (Criteria) this;
        }

        public Criteria andSecondsortnameNotEqualTo(String value) {
            addCriterion("secondsortname <>", value, "secondsortname");
            return (Criteria) this;
        }

        public Criteria andSecondsortnameGreaterThan(String value) {
            addCriterion("secondsortname >", value, "secondsortname");
            return (Criteria) this;
        }

        public Criteria andSecondsortnameGreaterThanOrEqualTo(String value) {
            addCriterion("secondsortname >=", value, "secondsortname");
            return (Criteria) this;
        }

        public Criteria andSecondsortnameLessThan(String value) {
            addCriterion("secondsortname <", value, "secondsortname");
            return (Criteria) this;
        }

        public Criteria andSecondsortnameLessThanOrEqualTo(String value) {
            addCriterion("secondsortname <=", value, "secondsortname");
            return (Criteria) this;
        }

        public Criteria andSecondsortnameLike(String value) {
            addCriterion("secondsortname like", value, "secondsortname");
            return (Criteria) this;
        }

        public Criteria andSecondsortnameNotLike(String value) {
            addCriterion("secondsortname not like", value, "secondsortname");
            return (Criteria) this;
        }

        public Criteria andSecondsortnameIn(List<String> values) {
            addCriterion("secondsortname in", values, "secondsortname");
            return (Criteria) this;
        }

        public Criteria andSecondsortnameNotIn(List<String> values) {
            addCriterion("secondsortname not in", values, "secondsortname");
            return (Criteria) this;
        }

        public Criteria andSecondsortnameBetween(String value1, String value2) {
            addCriterion("secondsortname between", value1, value2, "secondsortname");
            return (Criteria) this;
        }

        public Criteria andSecondsortnameNotBetween(String value1, String value2) {
            addCriterion("secondsortname not between", value1, value2, "secondsortname");
            return (Criteria) this;
        }

        public Criteria andShowmallIsNull() {
            addCriterion("showmall is null");
            return (Criteria) this;
        }

        public Criteria andShowmallIsNotNull() {
            addCriterion("showmall is not null");
            return (Criteria) this;
        }

        public Criteria andShowmallEqualTo(Integer value) {
            addCriterion("showmall =", value, "showmall");
            return (Criteria) this;
        }

        public Criteria andShowmallNotEqualTo(Integer value) {
            addCriterion("showmall <>", value, "showmall");
            return (Criteria) this;
        }

        public Criteria andShowmallGreaterThan(Integer value) {
            addCriterion("showmall >", value, "showmall");
            return (Criteria) this;
        }

        public Criteria andShowmallGreaterThanOrEqualTo(Integer value) {
            addCriterion("showmall >=", value, "showmall");
            return (Criteria) this;
        }

        public Criteria andShowmallLessThan(Integer value) {
            addCriterion("showmall <", value, "showmall");
            return (Criteria) this;
        }

        public Criteria andShowmallLessThanOrEqualTo(Integer value) {
            addCriterion("showmall <=", value, "showmall");
            return (Criteria) this;
        }

        public Criteria andShowmallIn(List<Integer> values) {
            addCriterion("showmall in", values, "showmall");
            return (Criteria) this;
        }

        public Criteria andShowmallNotIn(List<Integer> values) {
            addCriterion("showmall not in", values, "showmall");
            return (Criteria) this;
        }

        public Criteria andShowmallBetween(Integer value1, Integer value2) {
            addCriterion("showmall between", value1, value2, "showmall");
            return (Criteria) this;
        }

        public Criteria andShowmallNotBetween(Integer value1, Integer value2) {
            addCriterion("showmall not between", value1, value2, "showmall");
            return (Criteria) this;
        }
    }

    /**
     * food_sort
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * food_sort 2018-08-20
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}